﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
using Tp.Dto;
using Tp.Interfaces.Commands.Projects;

namespace Tp.ProjekteViewModel
{
	  public class EmployeeViewModelCommands : IEmployeeViewModelCommands
	  {

			#region Fields

			public RelayCommand<EmployeeDto> ShowDialogCommand { get; set; }

			#endregion

			#region Properties

			#endregion

			#region C-Tor

			public EmployeeViewModelCommands()
			{
				  this.RegisterCommands();
			}

			#endregion

			#region Private methods

			private void RegisterCommands()
			{
				  this.ShowDialogCommand = new RelayCommand<EmployeeDto>(ExecuteShowDialog);
			}

			private void ExecuteShowDialog(EmployeeDto selectedEmployee)
			{
				  Messenger.Default.Send(selectedEmployee);
			}

			#endregion

	  }
}
